package com.qidian.mapper;

import com.qidian.pojo.Bank;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author  戴着假发的程序员
 * @company  江苏极刻知学-起点编程
 */
public interface BankMapper {

   public Bank selectByName(String bankName);

   public int insert(Bank bank);

   public List<Bank> queryByPage(@Param("bankName") String bankName, @Param("start") int start, @Param("limit") int limit);

   public int queryCount(@Param("bankName") String bankName);

   public List<Bank> selectAll();

   public Bank selectById(Integer bankId);

   public int updateById(Bank bank);

   public int deleteOne(Integer bankId);

   public int delete(@Param("bankIds") List<Integer> bankIds);

}